package com.sg.business.permission.adapter.visitor;

import com.sg.business.model.Organization;
import com.sg.business.permission.model.PermissionVisitorFactory;
import com.sg.business.resource.nls.Messages;

public class OrgVisitorFactory extends PermissionVisitorFactory {

	private Organization org;

	public OrgVisitorFactory(Organization org) {
		this.org = org;
	}

	protected String getName() {
		return "[" + Messages.get().Organization  + "] " + org.getPath();
	}

	protected String getType() {
		return ORGANIZATION;
	}

	protected Object getId() {
		return org.get_id();
	}

}
